package June03;

public class Teacher extends Employee{
    private double salary;

    public Teacher() {
    }

    public Teacher(String name, String gender, Integer age, double salary) {
        super(name, gender, age);
        this.salary = salary;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    @Override
    public void show() {
        System.out.println("老师登录了，信息如下:姓名="+getName()+",性别="+getGender()+",年龄="+getAge()+",工资"+salary);
    }


}
